package mk.gamemap.model.gameevent
{
	import flash.events.EventDispatcher;
	
	import mk.gamemap.model.GameVar;
	import game.tileMap.model.vo.MapObj;
	
	import mx.events.DynamicEvent;

	public class GEvent extends EventDispatcher
	{
		public var id:String;
		public var mapSp:MapObj
		protected var gameVar:GameVar;
		public var isOpen:Boolean
		public var starting:Boolean;
		public var progress:int;
		//事件指令触发方式（0：确定键、1：与角色触碰、2：与事件触碰、3：自动运行、4：随行处理）。 
		public var trigger:int
		public static const EVENT_COMMAND="event_command" 
		public function GEvent(mapSp:MapObj)
		{
			this.mapSp=mapSp;
			
			gameVar=GameVar.getInt();
		}
		
		public function start():void{	
			starting=true;
		}
		
		public function update():void{
			if (!starting){
				return;
			} 
			
			updateList();
		}
		
		protected function updateList():void{
			
		}
	}
}